// 统一管理项目中所有的请求路径 api
import request from "./index";

//! 用户
// 登录
export const login = (params: any) => request.post("/login/operation/", params);
// 获取用户
export const getUsers = () => request.get("/user_view/");
// 新增用户
export const postUser = (params: any) =>
  request.post("/shanghe/user_add", params);
// 删除用户
export const deleteUser = (params: any) =>
  request.delete(`/user_delete/${params}`);
// 修改用户
export const putUser = (id: any, params: any) =>
  request.put(`/user_edit/${id}/`, params);
